import instance from './request'

// 获取收货地址列表
// localStorage.setItem('token', 'G636G3')
// config.headers['token'] = localStorage.getItem('token')
export const getAddressList = () => {
  return instance({
    method: 'post',
    url: 'shipping_address/addressList'
  })
}
// shipping_address/addAddress
export const setAddressList = address => {
  return instance({
    method: 'post',
    url: 'shipping_address/addAddress',
    data: address
  })
}
